﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    
    public class TypeBLL
    {
        TypeDAO tdo = new TypeDAO();
        public bool AddType(PO.Type type)
        {
            return tdo.Add(type);
        }
        public PO.Type GetTypeById(int id)
        {
            return tdo.GetTypeById(id);
        }
        public IList<PO.Type> GetAllType()
        {
            return tdo.GetAllType();
        }
        public bool ModifyType(PO.Type type)
        {
            return tdo.ModifyType(type);
        }
        public bool DeleteTypeById(int id)
        {
            return tdo.DeleteTypeById(id);
        }
        public IList<PO.Type> GetTopType(int top)
        {
            return tdo.GetTopType(top);
        }
    }
}
